package com.suning.sawp.po.store;

import java.io.Serializable;
import java.util.Date;

import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * 
 * 拨打电话记录<br> 
 * 〈功能详细描述〉
 *
 * @author 15050519
 * @see [相关类/方法]（可选）
 * @since [产品/模块版本] （可选）
 */
@Document(collection = "CallRecords")
public class CallRecords implements Serializable{

    /**
     */
    private static final long serialVersionUID = 1L;
    
    /**
     * 文档id
     */
    @Id
    private String id;
    
    /**
     * 员工工号
     */
    @Indexed
    private String staffId;
    
    /**
     * 会员编码
     */
    @Indexed
    private String custNo;
    
    /**
     * 手机号
     */
    @Indexed
    private String telNo;
    
    /**
     * 创建时间
     */
    private Date createTime;
    
    /**
     * 通话时间
     */
    private Date callTime;
    
    /**
     * 呼叫类型1-呼出,2-呼入
     */
    private Integer callType;
    
    
    public String getId() {
        return id;
    }
    public void setId(String id) {
        this.id = id;
    }
    
    
    public String getCustNo() {
        return custNo;
    }
    public void setCustNo(String custNo) {
        this.custNo = custNo;
    }
    public String getTelNo() {
        return telNo;
    }
    public void setTelNo(String telNo) {
        this.telNo = telNo;
    }
    public Date getCreateTime() {
        return createTime;
    }
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
    public Date getCallTime() {
        return callTime;
    }
    public void setCallTime(Date callTime) {
        this.callTime = callTime;
    }
    public Integer getCallType() {
        return callType;
    }
    public void setCallType(Integer callType) {
        this.callType = callType;
    }
    public String getStaffId() {
        return staffId;
    }
    public void setStaffId(String staffId) {
        this.staffId = staffId;
    }


    /**
     * 呼叫类型枚举
     * @author 15050519
     *
     */
    public enum CALLTYPE {
        CALL_IN(2,"呼入"),CALL_OUT(1,"呼出");
        private int value;
        private String desc;
        CALLTYPE(int value, String desc){
            this.value = value;
            this.desc = desc;
        }
        public int getValue() {
            return value;
        }
        public String getDesc() {
            return desc;
        }
    }
}
